package com.hjt.gulimall.auth.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author:97007
 * @date:2021/9/28 22:37
 */
@Data
public class UserLoginVo {
    @NotEmpty(message = "用户名或邮箱未提交")
    private String userAccount;

    @NotEmpty(message = "密码不能为空")
    @Length(min = 6, max = 18, message = "密码长度不合法")
    private String userPassword;
}
